<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        .parents {
            width: 100vw;
            height: 100vh;
            display: grid;
            grid-template: 100px repeat(2, 1fr) 100px/ repeat(4, 1fr);
            gap: 20px;
            grid-template-areas:
                "header header header header"
                "sidebar model01 model02 model03"
                "sidebar model04 model05 model06"
                "footer footer footer footer";

        }

        .parents div {
            border-radius: 10px;
            box-sizing: border-box;
            padding: 10px;
        }

        [class^=model] {
            background-color: #c6deff;
            text-align: center;

        }

        .header {
            grid-area: header;
            background-color: black;
            text-align: center;
            line-height: 80px;
            color: white;
        }

        .sidebar {
            grid-area: sidebar;
            background-color: #e5e7ea;

        }

        .model01 {
            grid-area: model01;
        }

        .model02 {
            grid-area: model02;
        }

        .model03 {
            grid-area: model03;
        }

        .model04 {
            grid-area: model04;
        }

        .model05 {
            grid-area: model05;
        }

        .model06 {
            grid-area: model06;
        }

        .footer {
            grid-area: footer;
            background-color: black;
            text-align: center;
            line-height: 80px;
            color: white;
        }

        @media screen and (max-width:700px) {
            .parents {
               
                grid-template-columns: 100px repeat(7, 1fr) 100px;
                gap: 10px;
                grid-template-areas:
                    "header "
                    "sidebar"
                    "model01" 
                    "model02" 
                    "model03"
                    "model04"
                    "model05"
                    "model06"
                    "footer "
            }
            .parents div{
                 width: 100vw;
            }

        }
    </style>
</head>

<body>
    <div class="parents">
        <div class="header">header</div>
        <div class="sidebar">sidebar</div>
        <div class="model01">model01</div>
        <div class="model02">model02</div>
        <div class="model03">model03</div>
        <div class="model04">model04</div>
        <div class="model05">model05</div>
        <div class="model06">model06</div>
        <div class="footer">footer</div>
    </div>
</body>

</html>